package com.yun.service;

import com.yun.dao.EvaluateMapper;
import com.yun.pojo.Evaluate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EvaluateService implements EvaluateMapper {

    @Autowired
    EvaluateMapper evaluateMapper;

    @Override
    public List<Evaluate> getEvaluate() {
        return evaluateMapper.getEvaluate() ;
    }

    @Override
    public int addEvaluate(Evaluate evaluate) {
        return evaluateMapper.addEvaluate(evaluate);
    }

    @Override
    public int updateState(int id,int state) {
        return evaluateMapper.updateState(id,state);
    }

    @Override
    public List<Evaluate> queryState(int state) {
        return evaluateMapper.queryState(state);
    }

    @Override
    public int deleteEvaluate(int id) {
        return evaluateMapper.deleteEvaluate(id);
    }
}
